package com.mars.manager.entity;

/**
 * 节点状态
 * @author yhaoquan
 *
 */
public class State {

	/**
     * 是否打开（1：true，2：false）
     */
    private boolean opened;

    /**
     * 是否禁用（1：true，2：false）
     */
    private boolean disabled;

    /**
     * 是否选中（1：true，2：false）
     */
    private boolean selected;
    
    public State() {
	}
    
	public State(boolean opened, boolean disabled, boolean selected) {
		super();
		this.opened = opened;
		this.disabled = disabled;
		this.selected = selected;
	}

	public boolean isOpened() {
		return opened;
	}

	public void setOpened(boolean opened) {
		this.opened = opened;
	}

	public boolean isDisabled() {
		return disabled;
	}

	public void setDisabled(boolean disabled) {
		this.disabled = disabled;
	}

	public boolean isSelected() {
		return selected;
	}

	public void setSelected(boolean selected) {
		this.selected = selected;
	}

	@Override
	public String toString() {
		return "State [opened=" + opened + ", disabled=" + disabled + ", selected=" + selected + "]";
	}
	
}
